<!--%import("filter/insert_category.xml")-->
<!--%import("filter/delete_category.xml")-->
<!--%import("filter/move_category.xml")-->

<!--// tree javascript plugin load -->
<!--%load_js_plugin("ui.tree")-->

<!--%import("js/document_category.js")-->
<!--%import("css/document.css")-->
<!--%load_js_plugin("ui.colorpicker")-->
<script type="text/javascript">
    var category_title = "{$lang->category}";
</script>

<span style="float:right"><a href="#"  onclick="doReloadTreeCategory('{$module_info->module_srl}');return false;" class="button black"><span>{$lang->cmd_remake_cache}</span></a></span>

    <div class="gap1">
        <form id="fo_category" action="./" method="get" onsubmit="return procFilter(this, insert_category)">
        <input type="hidden" name="module_srl" value="{$module_info->module_srl}" />
        <input type="hidden" name="xml_file" value="{$category_xml_file}" />
            <div id="category_info"></div>
        </form>
            <div id="menu">
                <ul class="simpleTree">
                    <li class="root" id='tree_0'><span>{$lang->category}</span></li>
                </ul>
            </div>
    </div>


<script type="text/javascript">
    var simpleTreeCollection;
    var max_menu_depth = 999;
    var lang_confirm_delete = "{$lang->confirm_delete}";
    var xml_url = "{$category_xml_file}";
    doCategoryFormMove();
    Tree(xml_url);
</script>
